package com.example.backend.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("book")
public class Book {
    @TableId
    String bid;
    String name;
    String author;
    int totalCopies;
    int availableCopies;
    public String getBid(){
        return bid;
    }
    public void setBid(String bid){
        this.bid = bid;
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public int getTotalCopies(){
        return totalCopies;
    }
    public void setTotalCopies(int TotalCopies){
        this.totalCopies = TotalCopies;
    }
    public int getAvailableCopies(){
        return availableCopies;
    }
    public void setAvailableCopies(int AvailableCopies){
        this.availableCopies = AvailableCopies;
    }
}
